#!/bin/sh
#
#  Libdwarf install.
#
#  $Id$
#

PKG_NAME=libdwarf
SRC=dwarf-20161124/libdwarf
WORK=work

. ../build-utils/configure.inc
pre_install
prefix="$libdwarf_prefix"

mkdir -p "$prefix/lib" || die "unable to mkdir: $prefix/lib"
mkdir -p "$prefix/include" || die "unable to mkdir: $prefix/include"

echo "copying libdwarf files ..."

cp "$SRC/dwarf.h" "$prefix/include/"  || die "unable to install dwarf.h"
cp "$WORK/libdwarf.h" "$prefix/include/" || die "unable to install libdwarf.h"

cd "$WORK" || die "unable to cd: $WORK"
tar cf - libdwarf.so* | ( cd "$prefix/lib" && tar xvf - )

post_install

